package com.app.designpattern.structural.composite;

/**
 * USER: zjw
 * DATA: 2019/4/24 0024
 * TIME: 上午 10:32
 * 一个目录组件的抽象类
 */
public abstract class CataLoagComponte {
    public void add(CataLoagComponte cataLoagComponte){
        throw new UnsupportedOperationException("不能添加组件");
    }
    public void remove(CataLoagComponte cataLoagComponte){
        throw new UnsupportedOperationException("不能删除组件");
    }
    public String getName(CataLoagComponte cataLoagComponte){
        throw new UnsupportedOperationException("不能获取组件名称");
    }
    public double getPrice(CataLoagComponte cataLoagComponte){
        throw new UnsupportedOperationException("不能获取组件价格");
    }
    public void prit(){
        throw new UnsupportedOperationException("不能打印组件信息");
    }
}
